﻿@model IEnumerable<Kavaa.Modules.PortailMedical.Entity.Clinique>
<script>
    /* Table initialisation */
    $(document).ready(function () {
        $('#example').dataTable({
            "sDom": "<'row'<'span4'l><'span4'f>r>t<'row'<'span4'i><'span4'p>>",
            "sPaginationType": "bootstrap"
        });
    });

</script>

    @{var idActe = @ViewBag.IdActe;
      var idVille = @ViewBag.IdVille;}
<div id="lala">
        
<table class="table table-striped table-bordered" id="example">

  <thead>   
         <tr></tr> 
        <tr></tr>  
		<tr>
        
			<th style="color:#A80000">Clinique</th>
			<th style="color:#A80000">Adresse</th>
			<th style="color:#A80000">Contact</th>
            <th style="color:#A80000">Ville</th>
             <th style="color:#A80000">Calendrier</th>
		</tr>
	</thead>
	<tbody>

@foreach (var item in Model)
{
    
    <tr>
       
        <td style="text-align:center;">
      
        
           <img src="/Content/Images/glyphicons_298_hospital.png"  class="tata"/>  @Html.DisplayFor(modelItem => item.Name)
           
        </td>
        <td>
           <div > <i class="icon-hand-right"></i> <b>Adresse:</b>  @Html.DisplayFor(modelItem => item.Adresse) </div>
               </td>
            
       <td>
           <img src="/Content/Images/telephone.png"  class="tata"/>  @Html.DisplayFor(modelItem => item.Tel)<br />
            <br /><i class="icon-envelope"></i>
            <a> @Html.DisplayFor(modelItem => item.Email)</a>
             </td>

          <td>
         
             @Html.DisplayFor(modelItem => item.Ville.Name)
             </td>

         <td style="text-align:center;">
        @using (Html.BeginForm("Reservation","Cabinet")){
             <input value= @item.Id name="selectedClinique" type="hidden"/>
            
              <input value="@idActe" type="hidden" name="acteId"/>
             
             <button  type="submit"> Voir le calendrier</button>
             }
              @* @Html.ActionLink("Voir le calendrier","Reservation")*@
             </td>
       
   
    </tr>
}
</tbody>
</table>
    

    
  
    

</div>
<br />
<br/>

@*<div id="tt" class = "alert alert-success" style="display:none">
   <button type="button" class="close" data-dismiss="alert">&times;</button>
  <div id="ttt"> </div>
   
</div>
 <div>*@
    @* class = "alert alert-success" style="color:red;display:none"*@
       @* <label id="textErreur" class = "alert alert-success" style="color:red;display:none">Le login ou le mot de passe est erroné.</label>
         </div>*@

